//============================================================================
// Name        : femta.cpp
// Author      : Gilang
// Version     :
// Copyright   : No Copyright, just Copyleft, legal to Copypaste
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "Node.h"
#include "Triangular.h"
using namespace std;

int main() {

	const Material mat = Material(0,1.2,0,0,1,1,5);
	Element *t=new Triangular(1);
	t->addNode(1,Node(1,0,0));
	t->addNode(2,Node(2,5,0));
	t->addNode(3,Node(3,0,5));
	Triangular tr=t;
	tr.setMaterial(mat);
	tr.setLast(false);
	Matrix s=tr.constructLHS();

	for(int i=1;i<=s.getRow();i++){
		for(int j=1;j<=s.getCol();j++){
			cout<<s(i,j)<<endl;
		}
	}
	return 0;
}
